home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-07-18 | 2.0 KB | 45 lines | [TEXT/GEOL] |
- Item 7132740 17-July-89 14:21
-
- From: LINS Lins, Chuck
-
- To: EVINS1 Evins, Mikel
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: Re: RE: More on GC
-
- Geoff and Mikel,
-
- As has been pointed out, gc is a very desirable feature to have as a part of
- any object-oriented language. As Mikel has reminded us of the fact that gc
- systems are hard to write and has intrinsic problems when running within a
- real-time application (one reason why Ada™ defines gc to be optional and
- dependent on the compiler implementor).
-
- GC has to be built in a the language level. It can only be added with extreme
- difficulty on top of any existing software system without support from the
- compiler. (The authors of ET++, an application framework in C++ similar to
- MacApp™, attempted implementation of the mechanism proposed by H.J. Boehm and
- M. Wieser in "Garbage Collection in an Uncooperative Environment" and soon
- abandoned further work in that direction because of the assignment problem.)
-
- The assignment problem is NOT a function of language however. As someone noted,
- SmallTalk has assignment AND gc. Niklaus Wirth has developed the language
- Oberon (an object-like language using Type Extension) based on Modula-2 in
- which gc is prescribed as a part of the language. There is a NEW operation, but
- no DISPOSE (or FREE). The compiler is quite capable of invoking the necessary
- actions when an assignment occurs.
-
- It is probably time for Object-Pascal as a language to be enhanced. Much work
- has been done in the area of language design since Object-Pascal was created a
- number of years ago. The USES mechanism is one example of an outdated form of
- modularity that needs improvement (both Ada™ and Modula-2 have superior program
- encapsulation features - even without objects - than Object Pascal due to the
- complete textual seperation of interface and implementation). GC is another
- area that needs to be addressed at the language level. I'm sure there are
- others.
-
- Chuck Lins
- Apple Computer, Inc.
-
-